cmake_minimum_required(VERSION 3.22)
project(VerilatorSim)

set(CMAKE_CXX_STANDARD 14)

add_executable(VerilatorSim softfpu/softfpu.cpp
							memory/memorysim_write.cpp
							memory/memorysim_check.cpp
							memory/memorysim_read.cpp
							vcsrc/log.cpp
							vcsrc/serial.cpp
							vcsrc/FPR.cpp
							vcsrc/sim_config.cpp
							vcsrc/snapshot.cpp
							vcsrc/rand64.cpp
							vcsrc/config.cpp
							vcsrc/initialize.cpp
							vcsrc/ram.cpp
							vcsrc/fifo8.cpp
							vcsrc/axi.cpp
							vcsrc/sim_main.cpp
							)

include_directories(obj_dir 
	                /home/airxs/local/verilator/include
	                )

add_definitions("-DWAVE_VCD -DVERILATOR_THREAD_NUM=8")